<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<script src="js/vue.js"></script>
		<title></title>
		<style>
			.block{display:inline-block;border:1px solid;}
		</style>
	</head>
	<body> 
		<div id="app">
			<div class="block">不阻止默认行为</div>
			<div class="block"v-on:contextmenu.prevent="rightClick">阻止默认行为</div>
		</div>
	</body>
	<script> 
		var vm = new Vue({
			el:'#app',
			data:{},
			methods:{
				rightClick:function(){
					alert("do something");
				}
			}
		})
	</script>
</html>
